package com.example.nextstream.models;

import com.baomidou.mybatisplus.annotation.*;
import com.example.nextstream.enums.StatusEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

@TableName("client_session")
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class ClientSession {
    @TableId(value="session_id",type = IdType.ASSIGN_UUID)
    private String sessionId;

    @TableField(value="assets_id")
    private Integer assetsId;

    @TableField(value="author_id")
    private Integer authorId;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


    @TableLogic
    private Integer deleted;
}
